/*
 * @Author: WangShuai 1830773767@qq.com
 * @Date: 2025-06-12 22:30:15
 * @LastEditors: WangShuai 1830773767@qq.com
 * @LastEditTime: 2025-06-13 12:09:28
 * @FilePath: \vue3_admin_template\project\src\store\modules\map.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//创建地图仓库
import { defineStore } from 'pinia'

let useMapStore = defineStore('map', {
  state: (): any => {
    return {
      map: '',
      baseMapId: {},
    }
  },
  actions: {
    setMapFn(map: any, baseMapId: any) {
      this.map = map
      this.baseMapId = baseMapId
    },
  },
})

export default useMapStore
